home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / ComponentPeer.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  86 lines

  1. /*
  2.  * @(#)ComponentPeer.java    1.23 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt.peer;
  16.  
  17. import java.awt.*;
  18. import java.awt.image.ImageProducer;
  19. import java.awt.image.ImageObserver;
  20. import java.awt.image.ColorModel;
  21.  
  22. public interface ComponentPeer {
  23.     void                setVisible(boolean b);
  24.     void                setEnabled(boolean b);
  25.     void        paint(Graphics g);
  26.     void        repaint(long tm, int x, int y, int width, int height);
  27.     void        print(Graphics g);
  28.     void        setBounds(int x, int y, int width, int height);
  29.     void                handleEvent(AWTEvent e);
  30.     Point        getLocationOnScreen();
  31.     Dimension        getPreferredSize();
  32.     Dimension        getMinimumSize();
  33.     ColorModel        getColorModel();
  34.     java.awt.Toolkit    getToolkit();
  35.     Graphics        getGraphics();
  36.     FontMetrics        getFontMetrics(Font font);
  37.     void        dispose();
  38.     void        setForeground(Color c);
  39.     void        setBackground(Color c);
  40.     void        setFont(Font f);
  41.     void         setCursor(Cursor cursor);
  42.     void        requestFocus();
  43.     boolean        isFocusTraversable();
  44.  
  45.     Image         createImage(ImageProducer producer);
  46.     Image         createImage(int width, int height);
  47.     boolean        prepareImage(Image img, int w, int h, ImageObserver o);
  48.     int            checkImage(Image img, int w, int h, ImageObserver o);
  49.  
  50.     /**
  51.      * DEPRECATED:  Replaced by getPreferredSize().
  52.      */
  53.     Dimension        preferredSize();
  54.  
  55.     /**
  56.      * DEPRECATED:  Replaced by getMinimumSize().
  57.      */
  58.     Dimension        minimumSize();
  59.  
  60.     /**
  61.      * DEPRECATED:  Replaced by setVisible(boolean).
  62.      */
  63.     void        show();
  64.  
  65.     /**
  66.      * DEPRECATED:  Replaced by setVisible(boolean).
  67.      */
  68.     void        hide();
  69.  
  70.     /**
  71.      * DEPRECATED:  Replaced by setEnabled(boolean).
  72.      */
  73.     void        enable();
  74.  
  75.     /**
  76.      * DEPRECATED:  Replaced by setEnabled(boolean).
  77.      */
  78.     void        disable();
  79.  
  80.     /**
  81.      * DEPRECATED:  Replaced by setBounds(int, int, int, int).
  82.      */
  83.     void        reshape(int x, int y, int width, int height);
  84.  
  85. }
  86.